
  <h1>edit article</h1>
  <form method="post" action="/admin/post_article">
    title:<input type="text" name="title" value="{{article.title if article else 'title'}}" /><br/>
    language:<input type="text" name="language" value="{{article.language if article else 'english'}}" /><br/>
    summary:<br/><textarea name="summary" tabindex="4">{{!article.summary if article else ''}}</textarea><br/>
    categories:<input type="text" name="categories" value="{{','.join(article.categories) if article else 'other'}}" /><br/>
    tags:<input type="text" name="tags" value="{{','.join(article.tags) if article else 'other'}}" /><br/>
    purview:<input type="text" name="purview" value="{{article.purview if article else 'anonymous'}}" /><br/>
    *action*<input name="action" value="{{'modify' if article else 'new'}}" />(or delete)<br/>
    <input type="hidden" name="id" value="{{article.key.id() if article else ''}}" />
    body:<br/><textarea name="body" id="markItUp" spellcheck="false">{{!article.body if article else ''}}</textarea><br/>
    <input type="submit" value="Submit" />
  </form>
  <script type="text/javascript">
    $(function() { $('#markItUp').markItUp(mySettings); });
  </script>


%rebase templates/layout_main  sidebar=sidebar
